/*
 * test_utils.h
 *
 *  Created on: Jun 29, 2012
 *      Author: Chaos
 */

#include "rpe_ltp_rx.h"
#include "rpe_ltp_tx.h"
#include "misc.h"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>

#ifndef TEST_UTILS_H_
#define TEST_UTILS_H_

void fxp_to_float(int16_t* fxp, float* flt, int length);

void fxp_to_file(int16_t* fxp, int length, const char* fname);

void float_to_file(float* flt, int length, const char* fname);

void file_to_fxp(const char* fname, int16_t* fxp, int length);

void file_to_flt(const char* fname, float* flt, int length);

void run_test(const char* tname);

#endif /* TEST_UTILS_H_ */
